#ifndef LINI_TYPEDEF_H
#define LINI_TYPEDEF_H

#include <stdio.h>
#include <string.h>

#define DECL_PRIV(thiz, priv) PrivInfo* priv = thiz != NULL ? (PrivInfo*)thiz->priv : NULL

#define return_val_if_fail(p, val) if(!(p))\
			{printf("%s:%d Warning: "#p" failed.\n",\
								__func__, __LINE__); return (val);}


#define return_if_fail(p) if(!(p))\
			{printf("%s:%d Warning: "#p" failed.\n", \
									__func__, __LINE__); return;}


#endif /*LINI_TYPEDEF_H*/
